/*
*PlayerManager.fx
*
*Created on Mar 29, 2011, 23:03:38 PM
*/

package game.controller;
import game.object.*;

public class PlayerManager {
};

public function newPlayerList(names:String[]):Player[]
{
    var playerList:Player[];
    for (i in [0..names.size()-1])
    {
		var p:Player = new Player;
		p.myName = names[i];
		insert p into playerList;        
    }
    return playerList;
}